package com.larsgard.gedviewer.shared;

import java.io.Serializable;

import com.larsgard.gedviewer.shared.ProcessRequest.OPERATION;

public class ProcessResult implements Serializable {

    private static final long serialVersionUID = -503451143551757655L;

    private boolean finished;
    private int position;

    private OPERATION operation;

    private String fileId;

    private int totalCount;

    public boolean isFinished() {
	return finished;
    }

    public void setFinished(boolean finished) {
	this.finished = finished;
    }

    public void setPosition(int read) {
	this.position = read;
    }

    public int getPosition() {
	return position;
    }

    public void setOperation(OPERATION operation) {
	this.operation = operation;
    }

    public OPERATION getOperation() {
	return operation;
    }

    public String getFileId() {
	return this.fileId;
    }

    public void setFileId(String treeId) {
	this.fileId = treeId;
    }

    public int getTotal() {
	return totalCount;
    }

    public void setTotal(int total) {
	this.totalCount = total;
    }

}
